from core.orm.status import status_str
from models import Prove


def get_sort_and_status_by_user_id(uid):
    prove = Prove.query.filter_by(user_id=uid).first()

    ret={
        'status':status_str(prove),
    }

    return ret